//
//  DataBaseHandler.h
//  livingDesign
//
//  Created by dlios on 15-2-2.
//  Copyright (c) 2015年 怡居. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "Newest.h"
#import "NewestDetail.h"
#import "DBModel.h"
@interface DataBaseHandler : NSObject
{
    sqlite3 *dbPoint;
}
+ (DataBaseHandler *)shareInstance;

//打开数据库
- (void)openDB;
//关闭数据库
- (void)closeDB;
//创建表
- (void)createDB;
// 插入信息
- (void)insertDataWithNewest:(Newest *)newest newestDetail:(NSString *)newestDetailURL;
- (NSMutableArray *)selectDB;
- (void)deleteDBModel:(NSString *)albumId;


@end
